package com.bid.base.common.util;

import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneOffset;
/**
 * <strong>Description : </strong> <br>
 * <p>
 * <strong>北京正源德标科技信息有限责任公司</strong> <br>
 * </p>
 * <br>
 *
 * @author : zhaots
 * @date Date : 2020年12月07日 18:22
 * 修改人 修改日期 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class Dater {

//	public static void main(String[] args) {
//		// TODO Auto-generated method stub
//		Long[] longs = getTodayBeginAndNextBegin();
//		System.out.println(longs[0]+"\t"+longs[1]);
//	}

	public static Long[] getTodayBeginAndNextBegin(){
		
		LocalDateTime localDateTime = LocalDateTime.now();
		LocalDateTime minTime = localDateTime.with(LocalTime.MIN);
		LocalDateTime maxTime = localDateTime.with(LocalTime.MAX);
		long min = minTime.toInstant(ZoneOffset.of("+8")).toEpochMilli();
		long max = maxTime.toInstant(ZoneOffset.of("+8")).toEpochMilli();
		return new Long[]{min,max+1};
	}
}
